import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_bank_management/xin_he_bank_list_sheet/xin_he_bank_code_entity.dart';

XinHeBankCodeEntity $XinHeBankCodeEntityFromJson(Map<String, dynamic> json) {
	final XinHeBankCodeEntity xinHeBankCodeEntity = XinHeBankCodeEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		xinHeBankCodeEntity.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeBankCodeEntity.name = name;
	}
	final String? value = jsonConvert.convert<String>(json['value']);
	if (value != null) {
		xinHeBankCodeEntity.value = value;
	}
	final dynamic remark = jsonConvert.convert<dynamic>(json['remark']);
	if (remark != null) {
		xinHeBankCodeEntity.remark = remark;
	}
	final dynamic versionNum = jsonConvert.convert<dynamic>(json['version_num']);
	if (versionNum != null) {
		xinHeBankCodeEntity.versionNum = versionNum;
	}
	final dynamic removed = jsonConvert.convert<dynamic>(json['removed']);
	if (removed != null) {
		xinHeBankCodeEntity.removed = removed;
	}
	final dynamic createTime = jsonConvert.convert<dynamic>(json['createTime']);
	if (createTime != null) {
		xinHeBankCodeEntity.createTime = createTime;
	}
	final dynamic updateTime = jsonConvert.convert<dynamic>(json['updateTime']);
	if (updateTime != null) {
		xinHeBankCodeEntity.updateTime = updateTime;
	}
	final dynamic fCreateUserId = jsonConvert.convert<dynamic>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeBankCodeEntity.fCreateUserId = fCreateUserId;
	}
	final dynamic fUpdateUserId = jsonConvert.convert<dynamic>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeBankCodeEntity.fUpdateUserId = fUpdateUserId;
	}
	final bool? selected = jsonConvert.convert<bool>(json['selected']);
	if (selected != null) {
		xinHeBankCodeEntity.selected = selected;
	}
	return xinHeBankCodeEntity;
}

Map<String, dynamic> $XinHeBankCodeEntityToJson(XinHeBankCodeEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['value'] = entity.value;
	data['remark'] = entity.remark;
	data['version_num'] = entity.versionNum;
	data['removed'] = entity.removed;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	data['selected'] = entity.selected;
	return data;
}